import ReactDom from "react-dom";
import React, { Suspense } from "react";
import App from "./App";
const RemoteApp = React.lazy(() => import("fl/FLxx"));
// import RemoteApp from 'fl/FLxx'  // 不能同步引用

ReactDom.render(
  <React.StrictMode>
    <App />
    <Suspense fallback={"loading..."}>
      <div style={{ border: "1px solid #fdd", padding: "2em", margin: "1em" }}>
        <RemoteApp />
      </div>
    </Suspense>
  </React.StrictMode>,
  document.getElementById("root")
);
